package com.xjoyt.pay.merchant.register.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.merchant.register.params.MerchantPageParam;
import com.xjoyt.pay.merchant.register.po.Merchant;

public interface MerchantContract {

	@RequestMapping(value = "check/{id}/{enabled}")
	ExecuteResult<Merchant> check(@PathVariable("id") String id, @PathVariable("enabled") Boolean enabled);

	@RequestMapping(value = "register", method = RequestMethod.POST)
	ExecuteResult<?> register(Merchant param);

	@RequestMapping(value = "update", method = RequestMethod.POST)
	ExecuteResult<?> update(Merchant param);

	@RequestMapping(value = "loadPage", method = RequestMethod.POST)
	PageResult<Merchant> loadPage(PageParam<MerchantPageParam> param);

}
